<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>查看培训动态</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/public.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/main.css"
	rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<script type="text/javascript">		
	function submit(obj) {
		var selectedbValue = obj.value;
		if (selectedbValue == "1") {
			document.getElementById("subArea").style.display = '';
		} else if (selectedbValue == "2") {
			document.getElementById("subArea").style.display = 'none';
		} else{
			document.getElementById("subArea").style.display = 'none';
		}	
	}
</script>
<h:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display: ">
	<a4j:outputPanel id="msgPanel">
		<center><h:outputText styleClass="cff"
			value="#{SubjectBB.msg}" /></center>
	</a4j:outputPanel></div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>OFFICE<h:selectOneMenu disable="true"
				class="style_input" value="#{NoticeTrainBB.notice.officeCode}">
				<f:selectItem itemValue="0" itemLabel="--请选择office--" />
				<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td>通知类型 <h:selectOneMenu id="tp_noticekind"
				class="style_input" value="#{NoticeTrainBB.notice.tpNoticekind}" disable="true">
				<f:selectItem itemValue="0" itemLabel="--请选择通知类型--" />
				<f:selectItems value="#{paramBB.selectItem['tp_noticekind']}" />
			</h:selectOneMenu></td>
			<td>
			通知级别 <h:selectOneMenu class="style_input" disabl="true"
				value="#{NoticeTrainBB.notice.tpNoticelevel}">
				<f:selectItem itemValue="0" itemLabel="--请选择通知级别--" />
				<f:selectItems value="#{paramBB.selectItem['tp_noticelevel']}" />
			</h:selectOneMenu>
			</td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td><rich:message for="tp_del_flag" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td class="yellow">生成标识 <h:selectOneMenu
				class="style_input" disabl="true"
				value="#{NoticeTrainBB.notice.tpBuildflag}">
				<f:selectItem itemValue="0" itemLabel="--请选择生成标识--" />
				<f:selectItems value="#{paramBB.selectItem['tp_buildflag']}" />
			</h:selectOneMenu></td>
			<td class="yellow">开始日期
				<rich:calendar styleClass="a1input1" value="#{NoticeTrainBB.notice.tpUsedBegin}" datePattern="yyyy-MM-dd" disabled="true"/></td>
			<td class="yellow">结束日期
				<rich:calendar styleClass="a1input1" value="#{NoticeTrainBB.notice.tpUsedEnd}" datePattern="yyyy-MM-dd" disabled="true"/></td>
		</tr>
		<tr>
			<td></td>
			<td><rich:message for="tp_question" showSummary="true" showDetail="false" /></td>
			<td></td>
		</tr>
		<tr>
			<td>主题 <h:inputText id="tp_title" disabled="true"
				class="style_input" value="#{NoticeTrainBB.notice.tpTitle}" 
				required="true" validator="#{SubjectBB.validateName}"/></td>
			<td>创建人 <h:inputText id="tp_op" disabled="true"
				class="style_input" value="#{NoticeTrainBB.notice.tpOp}" /></td>
			<td>创建时间<rich:calendar styleClass="a1input1" value="#{NoticeTrainBB.notice.tpOpDate}" datePattern="yyyy-MM-dd" disabled="true"/></td>
		</tr>
		<tr>
			<td></td>
			<td><span class="notice"><rich:message for="tp_answer" showSummary="true" showDetail="false" /></span></td>
			<td></td>
		</tr>
		<tr>
		    <td rowspan="3" colspan="3">通知内容
				<h:inputTextarea cols="160" rows="8" id="tp_cont" readonly="true"
			    value="#{NoticeTrainBB.notice.tpCont}" 
				validator="#{SubjectBB.validateName}"></h:inputTextarea></td>
		</tr>
	</table>
	<div class="listbut">
		<h:commandButton styleClass="buttonbg" value="返回" action="#{NoticeTrainBB.backToQuery_2}" immediate="true">
			<f:param name="index" value="#{NoticeTrainBB.index}" />
		</h:commandButton>
    </div>
	</div>
	</div>
</h:form>

</body>
</html>

